package aupdg.presentation;

import aupdg.data.model.impl.AuDataDependenceEdge;
import edu.uci.ics.jung.visualization.VisualizationViewer;

/**
 * Listener of events on the menu of the edge's graphical component.
 *
 * @param <Edge>
 * @author AA and CJ
 */
public interface EdgeMenuListener<Edge> {

    /**
     * Sets the edge on which the event was listened.
     *
     * @param e
     */
    public void setEdge(AuDataDependenceEdge e);

    /**
     * Sets the VisualizationViewer of the graph on which the event was called.
     * Necessary to change the properties of the graph: color of nodes, edges,
     * etc.
     *
     * @param vv
     */
    public void setView(VisualizationViewer vv);
}
